<template>
	<view style="background-color: #F5F5F5;height: 100vh;">
		<image src="https://x.bilinmeiju.com/static/sqgl/beijing.png" class="beijing" mode=""></image>
		<view class="top" :style="'height:'+CustomBar+'px;'">
			<image @click="fanhui" class="top1img" src="https://x.bilinmeiju.com/static/sqgl/zjt.png" mode=""></image>
			<view class="toptext">
				我的成员
			</view>
			<view class=""></view>
		</view>
		<view :style="'height:'+topheight+'px;'"></view>

	</view>
	</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				CustomBar: 0,
				topheight: 0,
			}
		},
		onLoad() {
			let menuButtonInfo = uni.getMenuButtonBoundingClientRect()
			console.log(menuButtonInfo, 5523);
			this.CustomBar = menuButtonInfo.bottom * 1
			this.topheight = 87 - this.CustomBar
		},
		methods: {
			fanhui() {
				uni.navigateBack({
					delta: 1
				})
			},
			erwm() {
				uni.navigateTo({
					url: '/pages/myfangchan/zhanshi'
				})
			}

		}
	}
</script>

<style>
	.beijing {
		width: 100vw;
		height: 174rpx;
		z-index: 1;
		position: absolute;
		top: 0;
	}

	.top {
		z-index: 5;
		width: 700rpx;
		margin: 0 auto;
		display: flex;
		justify-content: space-between;
		align-items: flex-end;
	}

	.toptext {
		z-index: 5;
		font-size: 36rpx;
		font-family: Source Han Sans CN;
		font-weight: 500;
		color: #ffffff;
		line-height: 36rpx;
	}

	.top1img {
		z-index: 5;
		width: 20rpx;
		height: 36rpx;
	}
</style>
